package com.gk.panda.apis.patrol.servicr.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gk.panda.apis.patrol.mapper.ReportResourceMapper;
import com.gk.panda.apis.patrol.servicr.ReportResourceService;
import com.gk.panda.pojo.patrol.dto.UrlDTO;
import com.gk.panda.pojo.patrol.entity.ReportResourceEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author：xxz
 * @Create: 2022/11/1 16:13
 */
@Service
public class ReportResourceServiceImpl extends ServiceImpl<ReportResourceMapper, ReportResourceEntity> implements ReportResourceService {


    @Override
    public List<UrlDTO> getUrlByPatrolId(String type, Long patrolId) {
        return this.baseMapper.resourceUrlByPatrolId(type, patrolId);
    }

    @Override
    public List<UrlDTO> getUrlByReportId(String type, Long reportId) {
        return this.baseMapper.resourceUrlByReportId(type, reportId);
    }

    @Override
    public List<Long> ids(Long reportId) {
        return this.baseMapper.getIds(reportId);

    }


}